package yancy.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import yancy.modules.sys.entity.SysBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysBookDao extends BaseMapper<SysBook> {
    List<SysBook> query(@Param("page") Page page, @Param("params") Map<String, Object> params);

    Integer hasReference(Long authorId);
}
